package com.ziyueyuwen.xiniao.service.baseservice.report;

import com.ziyueyuwen.xiniao.bean.report.StudentLessonReportVO;
import com.ziyueyuwen.xiniao.bean.report.ZyStudentLessonReport;
import com.ziyueyuwen.xiniao.service.baseservice.BaseService;

import java.util.List;

/**
 * @author wancheng  on 2019/3/15.
 */
public interface ReportBaseService extends BaseService{
    /**
     * 添加
     * @param report
     * @return
     */
    Boolean save(ZyStudentLessonReport report);

    /**
     * 添加返回主键
     * @param report
     * @return
     */
    ZyStudentLessonReport saveReturnPreKey(ZyStudentLessonReport report);

    /**
     * 批量添加
     * @param reports
     */
    void saveBatch(List<ZyStudentLessonReport> reports);

    /**
     * 主键删除
     * @param id
     * @return
     */
    Boolean deleteByPreKey(Integer id);

    /**
     * 删除
     * @param report
     * @return
     */
    Boolean delete(ZyStudentLessonReport report);

    /**
     * 修改
     * @param report
     * @return
     */
    Boolean updateByPreKey(ZyStudentLessonReport report);

    /**
     * 主键获取
     * @param id
     * @return
     */
    ZyStudentLessonReport getByPreKey(Integer id);

    /**
     * 获取一个
     * @param report
     * @return
     */
    ZyStudentLessonReport getOne(ZyStudentLessonReport report);

    /**
     * 获取多个
     * @param param
     * @return
     */
    List<ZyStudentLessonReport> getByReport(ZyStudentLessonReport param);

    /**
     * 获取全部
     * @return
     */
    List<ZyStudentLessonReport> getAll();

    /**
     * 获取学生报告
     * @param studentAccount
     * @param lessonId
     * @return
     */
    ZyStudentLessonReport getByReport(String studentAccount,Integer lessonId);

    /**
     * 获取该课节所有学生的课堂报告
     * @param lessonId
     * @return
     */
    List<StudentLessonReportVO> getStudentLessonReport(Integer classId,Integer lessonIdex);

    /**
     * 获取该课节所有学生的课堂报告
     * @param lessonId
     * @return
     */
    List<StudentLessonReportVO> getStudentLessonReport(Integer lessonId);
}
